# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=swaks
pkgver=20240103.0
pkgrel=0
pkgdesc="Swiss Army Knife for SMTP"
url="https://www.jetmore.org/john/code/swaks/"
license="GPL-2.0-or-later"
arch="noarch"
options="!check" # tarball does not contain test suite
depends="perl"
subpackages="$pkgname-doc"
source="https://www.jetmore.org/john/code/swaks/files/swaks-$pkgver.tar.gz"

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname doc/*
}

sha512sums="
89d62cdb94630666c1acb1feb3b62585f36b4d59d14e56d998da6efe45538e9f5072379eebee43dd7244aa3981dbd8d6eb9a42ff7fa21a73127d171b8b3189f5  swaks-20240103.0.tar.gz
"
